# @Time : 2022/7/27 13:25
# @Author : zhangzhihui
# @Email : mrzhangzh@gmail.com

from django.urls import re_path

from . import consumers

websocket_urlpatterns = [
    # 使用consumers.ChatConsumer.as_asgi()为每个链接建立一个consumer实例
    re_path(r'ws/correspondence', consumers.ChatConsumer.as_asgi()),
    # re_path(r'push/(?P<room_name>\w+)/$', consumers.PushConsumer.as_asgi()),
]